<?php

namespace app\admin\controller;

use app\admin\model\Order as ModelOrder;

class Order extends Base
{
    public function index()
    {
        return view();
    }
    public function list()
    {
        $list = ModelOrder::list();
        return success($list);
    }
    public function del($id)
    {
        if ((new ModelOrder())->del($id)) return success();
        return error();
    }
}
